<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <title>天气查询功能</title>
  <script src="./js/xhr.js"></script>
</head>

<body>
  <!-- 构建三级下拉列表 -->
  省份:<select id='province'>
    <option value="0">请选择省</option>
  </select>
  城市:<select id='city'>
    <option value="0">请选择市</option>
  </select>
  地区:<select id='county'>
    <option value="0">请选择县/区</option>
  </select>
  <input type="button" id='search' value="查询天气">
  <hr>
  <div id="result"></div>
</body>
<script src="./js/weather.js"></script>
<script src="./js/cookie.js"></script>
<script>

  setCookie("uname", "前端老兵", 60)
  console.log(getCookie("uname"));

</script>

</html>